n = 11
m=bin(n)[2:]
print(m)
j=0
for i in str(m):
    if i=='1':
        j+=1
print(j)